﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhp.Entity.SysEnum;
using Zhp.Model.Common;

namespace Zhp.IService.Common
{
    public interface IFileService
    {
        Task<ObjectRet<UploadFileRet>> UploadFile(UploadFileParam param);
        Task<ObjectRet<UploadFileRet>> UploadSingleFile(UploadFileParam param);
        Task<BaseRet> DeleteFile(long id);
        Task<(Stream, string)> GetFileStream(long id);
        string GetStreamUrl(long id);
        Task<string> GetSingleFileId(FileEnum module, long mainId);
        Task<string> GetSingleFileStreamUrl(FileEnum module, long mainId);
        Task<string> GetBase64ImageString(FileEnum module, long mainId);
        Task<ObjectRet<SingleImageFileRet>> GetBase64Image(FileEnum module, long mainId);
    }
}
